#include<stdio.h>
#include<stdlib.h>
#include<conio.h>

#define MANLEN 20
typedef char DATA;
typedef struct CBT
{
	DATA data;
	struct CBT* left;
	struct CBT* right;
}CBTType;

CBTType* InitTree();
void AddTreeNode(CBTType* treeNode);
CBTType* TreeFindNode(CBTType* treeNode, DATA data);
CBTType* TreeLeftNode(CBTType* treeNode);
CBTType* TreeRightNode(CBTType* treeNode);
int TreeIsEmpty(CBTType* treeNode);
int TreeDepth(CBTType* treeNode);
void ClearTree(CBTType* treeNode);
void TreeNodeData(CBTType* p);
void LevelTree(CBTType* treeNode, void (*TreeNodeData)(CBTType* p));
void DLRTree(CBTType* treeNode, void (*TreeNodeData)(CBTType* p));
void LDRTree(CBTType* treeNode, void (*TreeNodeData)(CBTType* p));
void LRDTree(CBTType* treeNode, void (*TreeNodeData)(CBTType* p));
